/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const zongkongRouter = {
  path: '/zongkong',
  component: Layout,
  redirect: '/zongkong/weihu/cheliang',
  name: 'Zongkong',
  meta: {
    title: '总控子系统',
    icon: 'tree',
    roles: ['总控']
  },
  children: [
    {
      path: 'weihu',
      component: () => import('@/views/zongkong/weihu/index'), // Parent router-view
      name: 'Weihu',
      meta: { title: '信息维护' },
      redirect: '/zongkong/weihu/cheliang/cheliang',
      children: [
        {
          path: 'cheliang',
          component: () => import('@/views/zongkong/weihu/cheliang/cheliang'),
          name: 'Cheliang',
          meta: { title: '车辆信息维护' }
        },
        {
          path: 'xianlu',
          component: () => import('@/views/zongkong/weihu/xianlu/xianlu'),
          name: 'Xianlu',
          meta: { title: '线路信息维护' }
        },
        {
          path: 'zhandian',
          component: () => import('@/views/zongkong/weihu/zhandian/zhandian'),
          name: 'Zhandian',
          meta: { title: '站点信息维护' }
        },
        {
          path: 'piaojia',
          component: () => import('@/views/zongkong/weihu/piaojia/piaojia'),
          name: 'Piaojia',
          meta: { title: '票价表维护' }
        },
        {
          path: 'jihua',
          component: () => import('@/views/zongkong/weihu/jihua/jihua'),
          name: 'Jihua',
          meta: { title: '计划班次维护' }
        },
        {
          path: 'yonghu',
          component: () => import('@/views/zongkong/weihu/yonghu/yonghu'),
          name: 'Yonghu',
          meta: { title: '用户信息维护' }
        },
        {
          path: 'fenxiancl',
          component: () => import('@/views/zongkong/weihu/fenxiancl/fenxiancl'),
          name: 'Fenxiancl',
          meta: { title: '分线路车辆维护' }
        },
        {
          path: 'fenxianbc',
          component: () => import('@/views/zongkong/weihu/fenxianbc/fenxianbc'),
          name: 'Fenxianbc',
          meta: { title: '分线路班次维护' }
        },
        {
          path: 'quanbu',
          component: () => import('@/views/zongkong/weihu/quanbu/quanbu'),
          name: 'Quanbu',
          meta: { title: '全部票价表维护' }
        },
        {
          path: 'xiugai',
          component: () => import('@/views/zongkong/weihu/xiugai/xiugai'),
          name: 'Xiugai',
          meta: { title: '修改班次时间' }
        },
        {
          path: 'zidong',
          component: () => import('@/views/zongkong/weihu/zidong/zidong'),
          name: 'Zidong',
          meta: { title: '自动报班车辆维护' }
        },
        {
          path: 'hunjian',
          component: () => import('@/views/zongkong/weihu/hunjian/hunjian'),
          name: 'Hunjian',
          meta: { title: '混检线路维护' }
        }
      ]
    },
    {
      path: 'chaxun',
      component: () => import('@/views/zongkong/chaxun/index'), // Parent router-view
      name: 'Chaxun',
      meta: { title: '信息查询' },
      redirect: '/zongkong/chaxun/banci/banci',
      children: [
        {
          path: 'banci',
          component: () => import('@/views/zongkong/chaxun/banci/banci'),
          name: 'Banci',
          meta: { title: '班次信息查询' }
        },
        {
          path: 'shoupiaocx',
          component: () => import('@/views/zongkong/chaxun/shoupiaocx/shoupiaocx'),
          name: 'shoupiaocx',
          meta: { title: '售票情况查询' }
        },
        {
          path: 'cheliang',
          component: () => import('@/views/zongkong/chaxun/cheliang/cheliang'),
          name: 'Cheliang',
          meta: { title: '车辆情况查询' }
        },
        {
          path: 'caozuo',
          component: () => import('@/views/zongkong/chaxun/caozuo/caozuo'),
          name: 'Caozuo',
          meta: { title: '操作日志查询' }
        },
        {
          path: 'cuowu',
          component: () => import('@/views/zongkong/chaxun/cuowu/cuowu'),
          name: 'Cuowu',
          meta: { title: '错误计划查询' }
        },
        {
          path: 'yiche',
          component: () => import('@/views/zongkong/chaxun/yiche/yiche'),
          name: 'Yiche',
          meta: { title: '一车多卡查询' }
        },
        {
          path: 'baoban',
          component: () => import('@/views/zongkong/chaxun/baoban/baoban'),
          name: 'Baoban',
          meta: { title: '报班车辆查询' }
        },
        {
          path: 'tongming',
          component: () => import('@/views/zongkong/chaxun/tongming/tongming'),
          name: 'Tongming',
          meta: { title: '同名站点查询' }
        },
        {
          path: 'shoupiaotj',
          component: () => import('@/views/zongkong/chaxun/shoupiaotj/shoupiaotj'),
          name: 'Shoupiaotj',
          meta: { title: '售票情况统计' }
        },
        {
          path: 'yunying',
          component: () => import('@/views/zongkong/chaxun/yunying/yunying'),
          name: 'Yunying',
          meta: { title: '运营情况统计' }
        },
        {
          path: 'danpiao',
          component: () => import('@/views/zongkong/chaxun/danpiao/danpiao'),
          name: 'Danpiao',
          meta: { title: '单票情况统计' }
        },
        {
          path: 'tuoban',
          component: () => import('@/views/zongkong/chaxun/tuoban/tuoban'),
          name: 'Tuoban',
          meta: { title: '脱班情况统计' }
        },
        {
          path: 'xianlu',
          component: () => import('@/views/zongkong/chaxun/xianlu/xianlu'),
          name: 'Xianlu',
          meta: { title: '线路运营查询' }
        },
        {
          path: 'chepiao',
          component: () => import('@/views/zongkong/chaxun/chepiao/chepiao'),
          name: 'Chepiao',
          meta: { title: '车票身份信息' }
        },
        {
          path: 'jiesuan',
          component: () => import('@/views/zongkong/chaxun/jiesuan/jiesuan'),
          name: 'Jiesuan',
          meta: { title: '结算单查询' }
        }
      ]
    },
    {
      path: 'chushihua',
      name: 'Chushihua',
      component: () => import('@/views/zongkong/chushihua/index'),
      meta: { title: '日初始化' }
    }
  ]
}

export default zongkongRouter
